package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 流程分类
 * </p>
 *
 * @author yalinyee
 * @since 2019-01-15
 */
@TableName("act_process_type")
public class ActProcessType extends Model<ActProcessType> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 类别id
     */
    @TableField("code_id")
    private String codeId;
    /**
     * 类型名称
     */
    @TableField("name_")
    private String name;
    /**
     * 分类的上级id
     */
    private Integer pid;
    /**
     * 有效性
     */
    @TableField("state_")
    private Long state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCodeId() {
        return codeId;
    }

    public void setCodeId(String codeId) {
        this.codeId = codeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ActProcessType{" +
        "id=" + id +
        ", codeId=" + codeId +
        ", name=" + name +
        ", pid=" + pid +
        ", state=" + state +
        "}";
    }
}
